<?php
/**
 * PHP-T超轻量级PHP开发框架
 *
 * @author    哈尔滨伟成科技有限公司 QQ77701950
 * @copyright Copyright (c) 2023
 * @license   PHP-T 遵循Apache2开源协议发布，需保留开发者信息。
 * @link      http://www.ourphp.net
**/

namespace PHPt\lib;
use PHPt\ourphp_function;

class temp
{
	
	public function __construct()
	{
		
	}
	
	public function JS($html = '', $cache = 0){
		if($cache == 0)
		{
			$t = '';
		}else{
			$t = '?'.time().rand(000,999);
		}
		$html = str_replace("，", ",", $html);
		$html = explode(",", $html);
		foreach($html as $op)
		{
			$return .= '<script type="text/javascript" src="'.$op.$t.'"></script>';
		}
		return $return;
	}

	public function CSS($html = '', $cache = 0){
		if($cache == 0)
		{
			$t = '';
		}else{
			$t = '?'.time().rand(000,999);
		}
		$html = str_replace("，", ",", $html);
		$html = explode(",", $html);
		foreach($html as $op)
		{
			$return .= '<link href="'.$op.$t.'" rel="stylesheet">';
		}
		return $return;
	}

	
}
?>